#ifndef NOTEITEM_H
#define NOTEITEM_H

#include <QtDebug>

#include <QMdiSubWindow>
#include <QErrorMessage>
#include <QFileInfo>

#include "richtextedit.h"

class NoteEditor : public QMdiSubWindow
	{
		Q_OBJECT

		public:
			NoteEditor(QWidget * parent = 0, Qt::WindowFlags f = 0);
			~NoteEditor();

			void attachFile();
			QString documentTitle() const;

		private:
			QFileInfo path;
			RichTextEdit *editor;

		public slots:
			void setDocumentTitle(const QString &);

		private slots:
			void save();
	};

#endif // NOTEITEM_H
